home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000030_news@newsmaster….columbia.edu _Mon May 4 23:33:53 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  1KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id XAA02899
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 4 May 1998 23:33:53 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id XAA23900
  7.     for kermit.misc@watsun; Mon, 4 May 1998 23:33:53 -0400 (EDT)
  8. Path: news.columbia.edu!panix!nntprelay.mathworks.com!newsfeed.internetmci.com!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!worldnet.att.net!newsadm
  9. From: Bernie <bfb@worldnet.att.net>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Error Handling
  12. Date: Tue, 05 May 1998 03:31:07 +0000
  13. Organization: AT&T WorldNet Services
  14. Lines: 17
  15. Message-ID: <6im161$mqo@bgtnsc03.worldnet.att.net>
  16. NNTP-Posting-Host: 12.68.111.74
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset=us-ascii
  19. Content-Transfer-Encoding: 7bit
  20. X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.31 i586)
  21. Xref: news.columbia.edu comp.protocols.kermit.misc:8682
  22.  
  23. Listed below is a code fragment which I hoped would
  24. handle modem errors.  However, when I turn the modem off,
  25. it locks up.  Is there a method I can use to handle errors, even if
  26. the modem were powered off?
  27.  
  28.  
  29. set count 3
  30. :LOOP
  31. pause
  32. output AT\13
  33. input 3 OK
  34. if success goto ok
  35. if count goto loop
  36. Stop 1 Can't communicate with modem at \m(max_speed)
  37.  
  38. :OK ; Initialize the modem.
  39.